let person: {
  name: string,
  age: number,
  sayHi: () => void
} = {
  name: 'zs',
  age: 19,
  sayHi() { }
}

// 可选属性
function myAxios(config: { url: string, methods?: string }) {
  console.log(config)
}

myAxios({ url: '' })